package com.farm.quartz.Dao;


import com.farm.quartz.model.haohaoAnimals;
import com.farm.quartz.model.haohaoMessage;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface haohaoAnimalsDao extends JpaRepository<haohaoAnimals,Integer> {
    List<haohaoAnimals> findAllBy(Pageable pageable);

    List<haohaoAnimals> findByName(String name);

    void removeById(int id);
    
    int countAllBy();
    
    List<haohaoAnimals> findAll();
}
